<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');

$id=isset($_GET["id"])?$_GET["id"]:"0";
if($id!="0"){
    $dict=$T->db->query("SELECT * FROM sys_equipment_repair where id=".$id)->fetch(PDO::FETCH_ASSOC);
    $T->Set("name",$dict["name"]);
    $T->Set("remarks",$dict["remarks"]);
    $T->Set("repair_user",$dict["repair_user_id"]);
    $T->Set("odx",$dict["is_sort"]);
    $T->Set("id",$dict["id"]);
    $T->Set("acceptname",$dict["repair_user_name"]);
}else{
    $T->Set("id","");
}

$T->Set("template",$template);         
$T->clearNaN();       
$T->clearNoN();
$T->display(); 